package cn.chengpengper.im.platform.common.model.constants;
/*@formatter:off*/

/**
 * ____________________
 * < 神兽护体，永无bug! >
 * --------------------
 *
 * @author huchengpeng
 * @version v1.0.0
 * @date 2024/11/23 16:07
 * @description 大后端平台常量类
 */

/*@formatter:on*/

public class ImPlatformContants {

    /**
     * 缓存数据默认10分钟过期
     */
    public static final Long DEFAULT_REDIS_CACHE_EXPIRE_TIME = 10L;

    /**
     * 大后端平台的用户Key
     */
    public static final String PLATFORM_REDIS_USER_KEY = "platform:user:";

    /**
     * Session 数据
     */
    public static final String SESSION = "session";

    /**
     * AccessToken
     */
    public static final String ACCESS_TOKEN = "accessToken";

    public static String getKey(String prefix, String key) {
        return prefix.concat(key);
    }

}
